package io.github.kevinzhwl.edgetts.api;

import io.github.kevinzhwl.edgetts.bean.CommunicateRequest;
import io.github.kevinzhwl.edgetts.bean.VoiceItem;
import io.github.kevinzhwl.edgetts.error.EdgeErrorException;

import java.util.List;

public interface EdgeTTSService {
  List<VoiceItem> listVoices() throws EdgeErrorException;

  boolean communicate(String text, String savedFile, String voiceName) throws EdgeErrorException;

  boolean communicate(String text, String savedFile, CommunicateRequest request) throws EdgeErrorException;
}
